import request from '@/utils/request'

export function dataForBigScreen() {
  return request({
    url: '/homepage/dataForBigScreen',
    method: 'get',
  })
}
// 户表用量前十
export function usageTop10ForXb(query) {
  return request({
    url: '/homepage/usageTop10ForXb',
    method: 'get',
    params: query
  })
}

// 地图
export function terminalDataForBigScreen(query) {
  return request({
    url: '/homepage/terminalDataForBigScreen',
    method: 'get',
    params: query
  })
}

// 获取地图json数据
// export function getMapJson(name)


/** 新大屏接口start */
export function getEnergyYearData() {
  return request({
    url: '/bigscreen/data/getEnergyYearData',
    method: 'get',
  })
}
export function getEnergyCostData() {
  return request({
    url: '/bigscreen/data/getEnergyCostData',
    method: 'get',
  })
}
export function getEnergyDeviceCountData() {
  return request({
    url: '/bigscreen/data/getEnergyDeviceCountData',
    method: 'get',
  })
}
export function getEnergyUseRankData(query) {
  return request({
    url: '/bigscreen/data/getEnergyUseRankData',
    method: 'get',
    params: query
  })
}
export function getEnergyYearUseData() {
  return request({
    url: '/bigscreen/data/getEnergyYearUseData',
    method: 'get',
  })
}
export function getEnergyItemData(query) {
  return request({
    url: '/bigscreen/data/getEnergyItemData',
    method: 'get',
    params: query
  })
}
export function getEnergyWarnData() {
  return request({
    url: '/bigscreen/data/getEnergyWarnData',
    method: 'get',
  })
}
export function getAreaPointInMap(query) {
  return request({
    url: '/bigscreen/data/getAreaPointInMap',
    method: 'get',
    params: query
  })
}

/** 新大屏接口end */